package com.lcj.vhr.service;

import com.lcj.common.util.PageUtils;
import com.lcj.vhr.db.pojo.VoucherEntity;

import java.util.List;
import java.util.Map;

public interface VoucherService {
    PageUtils searchVoucherByPage(Map param);

    int insert(VoucherEntity entity);

    int updateVoucher(Map param);

    int updateVoucherStatus(Map param);

    int deleteVoucherByIds(Long[] ids);

    PageUtils searchUnTakeVoucherByPage(Map param);

    PageUtils searchUnUseVoucherByPage(Map param);

    PageUtils searchUsedVoucherByPage(Map param);

    long searchUnUseVoucherCount(Map param);

    boolean takeVoucher(Map param);

    List<Map> searchBestUnUseVoucher(Map param);
}